::
:: Marge target dir log files.
::

@echo off

setlocal enabledelayedexpansion

echo ######################Start#######################

::Source log file Folder
set LogSourcePath=".\log\*"
::Target marge file Path
set LogTargetPath=".\log_marge.log"

if exist %LogTargetPath% (
	del %LogTargetPath%
)

for /f "delims=" %%a in ('dir/a-d/b/s %LogSourcePath%')do (
	echo %%a
	type %%a>>%LogTargetPath%
)

echo ######################Finish#######################

pause